import request from '@/utils/request'

/**
 *  获取楼宇列表
 *
 *
 * @param query
 * @returns {*}
 */
export function getBuildingListAPI(query) {
  return request({
    url: '/park/building',
    method: 'GET',
    params: query
  })
}

/**
 *  获取可租赁楼宇列表
 *
 * @param query
 * @returns {*}
 */
export function getRentBuildingListAPI(query) {
  return request({
    url: '/park/rent/building',
    method: 'GET',
    params: query
  })
}

/**
 *  创建合同
 * @param data
 * @returns {*}
 */
export function createRentAPI(data) {
  return request({
    url: '/park/enterprise/rent',
    method: 'POST',
    data: data
  })
}

